import { useUiStore } from '@/store/index.js';

function showLoading(message) {
  useUiStore.getState().showLoading(message);
}

function hideLoading() {
  useUiStore.getState().hideLoading();
}

function setProgress(progress) {
  useUiStore.getState().setProgress(progress);
}

const UiUtil = {
  showLoading,
  hideLoading,
  setProgress
};

export default UiUtil;
